Animator
declare abstract class Animator {}
Animator
Instance Method
constructor
Signature
declare class Animator {
constructor(context: Context)
}
Description
Create a new Animator.
start
Signature
declare class Animator {
start(): void
}
Description
Starts this animation.
end
Signature
declare class Animator {
end(): void
}
Description
Ends the animation.
cancel
Signature
declare class Animator {
cancel(): void
}
Description
Cancels the animation.
setStartDelay
Signature
declare class Animator {
setStartDelay(startDelay: number): void
}
Description
The amount of time, in milliseconds, to delay processing the animation afterstart()
is called.
setDuration
Signature
declare class Animator {
setDuration(duration: number): Animator
}
Description
Sets the duration of the animation.
getDuration
Signature
declare class Animator {
getDuration(): number
}
Description
Gets the duration of the animation.
getStartDelay
Signature
declare class Animator {
getStartDelay(): number
}
Description
The amount of time, in milliseconds, to delay processing the animation afterstart()
is called.
setInterpolator
Signature
declare class Animator {
setInterpolator(value: TimeInterpolator): void
}
Description
The time interpolator used in calculating the elapsed fraction of the animation.
isRunning
Signature
declare class Animator {
isRunning(): boolean
}
Description
Returns whether this Animator is currently running (having been started and gone past any initial startDelay period and not yet ended).
addListener
Signature
declare class Animator {
addListener(listener: Animator.AnimatorListener): void
}
Description
Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end.
removeListener
Signature
declare class Animator {
removeListener(listener: Animator.AnimatorListener): void
}
Description
Removes a listener from the set listening to this animation.
removeAllListeners
Signature
declare class Animator {
removeAllListeners(): void
}
Description
Removes alllisteners
andpauseListeners
from this object.
getListeners
Signature
declare class Animator {
getListeners(): ArrayList<Animator.AnimatorListener>
}
Description
Gets the set ofAnimator.AnimatorListener
objects that are currently listening for events on this Animator object.
clone
Signature
declare class Animator {
clone(): Animator
}
Description
Creates and returns a copy of this object.
setTarget
Signature
declare class Animator {
setTarget(target: Object): void
}
Description
Sets the target object whose property will be animated by this animation.
setupEndValues
Signature
declare class Animator {
setupEndValues(): void
}
Description
This method tells the object to use appropriate information to extract ending values for the animation.
setupEndValues
Signature
declare class Animator {
setupStartValues(): void
}
Description
This method tells the object to use appropriate information to extract starting values for the animation.
Animator.AnimatorListener
AnimatorListener
declare interface AnimatorListener {
onAnimationStart(animation: Animator): void;
onAnimationEnd(animation: Animator): void;
onAnimationCancel(animation: Animator): void;
onAnimationRepeat(animation: Animator): void;
}
Instance Method
onAnimationStart
Signature
declare class Animator {
onAnimationStart(animation: Animator): void;
}
Description
Notifies the start of the animation.
onAnimationEnd
Signature
declare class Animator {
onAnimationEnd(animation: Animator): void;
}
Description
Notifies the end of the animation.
onAnimationCancel
Signature
declare class Animator {
onAnimationCancel(animation: Animator): void;
}
Description
Notifies the cancellation of the animation.
onAnimationRepeat
Signature
declare class Animator {
onAnimationRepeat(animation: Animator): void;
}
Description
Notifies the repetition of the animation.